package com.zhss.dfs.client;

/**
 * @description:
 * @Author liu Weidong
 * @Email:
 * @Date: 2024/4/28 17:25
 * @Version 1.0
 */
public interface FileSystem {

    /**
     *  创建文件夹
     * @param path
     * @return
     */
    public Boolean mkdir(String path) throws Exception;


    /**
     * 关闭程序
     * @return
     * @throws Exception
     */
    public Boolean shutDown() throws Exception;


    /**
     *  上传文件
     * @param fileName
     * @param bytes
     * @return
     * @throws Exception
     */
    public boolean upload(String fileName, byte[] bytes, Long fileSize) throws Exception;


    /**
     * 进行文件下载
     * @param fileName
     * @return
     * @throws Exception
     */
    public byte[] download(String fileName) throws Exception;
}
